#ifndef __SAM_ID_PROTOCOL_
#define __SAM_ID_PROTOCOL_

#define SAM_PRO_OK 0
#define SAM_PRO_FAILED -1


//获取安全模块号指令
const unsigned char read_sec_mod_cmd[] = {0xAA, 0xAA, 0xAA,0x96, 0x69,0x00,0x03, 0x12,0xFF,0xEE};

//检测安全模块状态
const unsigned char check_sec_mod_cmd[] = {0xAA, 0xAA, 0xAA,0x96, 0x69,0x00,0x03, 0x11,0xFF,0xED};

//寻找卡片
const unsigned char find_id_cmd[] = {0xAA, 0xAA, 0xAA,0x96, 0x69,0x00,0x03, 0x20,0x01,0x22};

//选取卡片
const unsigned char sel_id_cmd[] = {0xAA, 0xAA, 0xAA,0x96, 0x69,0x00,0x03, 0x22,0x02,0x21};

//读取卡片
const unsigned char read_id_cmd[] = {0xAA, 0xAA, 0xAA,0x96, 0x69,0x00,0x03, 0x30,0x01,0x32};

typedef struct{
	unsigned char head[5];
	short len;
	char sw1;
	char sw2;
	char sw3;
}PROTOCOL_HEAD;

typedef struct{
	PROTOCOL_HEAD pro_head;
	
}ID_INFO;

#endif